[INFO] cloning repository https://github.com/PatrykStronski/KnapsackProblem
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PatrykStronski/KnapsackProblem" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c941050bad48b4e31df7bc7c3b60cb1df5f8e55a
[INFO] checking PatrykStronski/KnapsackProblem against master#09a371361240e42b0d69438fd1179efcf212e576 for pr-157814-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/PatrykStronski/KnapsackProblem
[INFO] finished tweaking git repo https://github.com/PatrykStronski/KnapsackProblem
[INFO] tweaked toml for git repo https://github.com/PatrykStronski/KnapsackProblem written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/PatrykStronski/KnapsackProblem on toolchain 09a371361240e42b0d69438fd1179efcf212e576
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09a371361240e42b0d69438fd1179efcf212e576" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/PatrykStronski/KnapsackProblem already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09a371361240e42b0d69438fd1179efcf212e576" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded shuffle v0.1.3
[INFO] [stderr]   Downloaded palette_derive v0.5.0
[INFO] [stderr]   Downloaded core-text v13.3.2
[INFO] [stderr]   Downloaded winapi-util v0.1.4
[INFO] [stderr]   Downloaded redox_users v0.3.4
[INFO] [stderr]   Downloaded adler32 v1.0.4
[INFO] [stderr]   Downloaded color_quant v1.0.1
[INFO] [stderr]   Downloaded serde_derive v1.0.105
[INFO] [stderr]   Downloaded ordered-float v1.0.2
[INFO] [stderr]   Downloaded lyon_path v0.14.0
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.60
[INFO] [stderr]   Downloaded lzw v0.10.0
[INFO] [stderr]   Downloaded servo-fontconfig v0.4.0
[INFO] [stderr]   Downloaded num-iter v0.1.40
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.60
[INFO] [stderr]   Downloaded gif v0.10.3
[INFO] [stderr]   Downloaded stb_truetype v0.3.1
[INFO] [stderr]   Downloaded dwrote v0.9.0
[INFO] [stderr]   Downloaded cmake v0.1.42
[INFO] [stderr]   Downloaded quote v1.0.3
[INFO] [stderr]   Downloaded freetype v0.4.1
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.60
[INFO] [stderr]   Downloaded num-integer v0.1.42
[INFO] [stderr]   Downloaded walkdir v2.3.1
[INFO] [stderr]   Downloaded rust-argon2 v0.7.0
[INFO] [stderr]   Downloaded arrayvec v0.5.1
[INFO] [stderr]   Downloaded rusttype v0.8.2
[INFO] [stderr]   Downloaded png v0.15.3
[INFO] [stderr]   Downloaded ryu v1.0.3
[INFO] [stderr]   Downloaded proc-macro2 v1.0.9
[INFO] [stderr]   Downloaded wasm-bindgen-backend v0.2.60
[INFO] [stderr]   Downloaded blake2b_simd v0.5.10
[INFO] [stderr]   Downloaded font-kit v0.4.0
[INFO] [stderr]   Downloaded lyon_geom v0.14.1
[INFO] [stderr]   Downloaded base64 v0.11.0
[INFO] [stderr]   Downloaded num-traits v0.2.11
[INFO] [stderr]   Downloaded js-sys v0.3.37
[INFO] [stderr]   Downloaded euclid v0.20.10
[INFO] [stderr]   Downloaded bitvec v0.15.2
[INFO] [stderr]   Downloaded palette v0.5.0
[INFO] [stderr]   Downloaded serde v1.0.104
[INFO] [stderr]   Downloaded bumpalo v3.2.1
[INFO] [stderr]   Downloaded syn v1.0.17
[INFO] [stderr]   Downloaded deflate v0.7.20
[INFO] [stderr]   Downloaded chrono v0.4.11
[INFO] [stderr]   Downloaded jpeg-decoder v0.1.18
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.60
[INFO] [stderr]   Downloaded image v0.22.5
[INFO] [stderr]   Downloaded bstr v0.2.12
[INFO] [stderr]   Downloaded libc v0.2.67
[INFO] [stderr]   Downloaded web-sys v0.3.37
[INFO] [stderr]   Downloaded csv v1.1.3
[INFO] [stderr]   Downloaded servo-fontconfig-sys v4.0.9
[INFO] [stderr]   Downloaded servo-freetype-sys v4.0.5
[INFO] [stderr]   Downloaded plotters v0.2.12
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef
[INFO] running `Command { std: "docker" "start" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef" "/opt/rustwide/cargo-home/bin/cargo" "+09a371361240e42b0d69438fd1179efcf212e576" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef" "/opt/rustwide/cargo-home/bin/cargo" "+09a371361240e42b0d69438fd1179efcf212e576" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.0
[INFO] [stderr]    Compiling libc v0.2.67
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling cc v1.0.50
[INFO] [stderr]    Compiling pkg-config v0.3.17
[INFO] [stderr]    Compiling proc-macro2 v1.0.9
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]    Compiling arrayvec v0.4.12
[INFO] [stderr]    Compiling syn v1.0.17
[INFO] [stderr]    Compiling getrandom v0.1.14
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]    Compiling num-integer v0.1.42
[INFO] [stderr]     Checking nodrop v0.1.14
[INFO] [stderr]    Compiling servo-fontconfig-sys v4.0.9
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]     Checking adler32 v1.0.4
[INFO] [stderr]    Compiling crc32fast v1.2.0
[INFO] [stderr]    Compiling num-rational v0.2.4
[INFO] [stderr]    Compiling quote v1.0.3
[INFO] [stderr]    Compiling num-iter v0.1.40
[INFO] [stderr]    Compiling cmake v0.1.42
[INFO] [stderr]     Checking euclid v0.20.10
[INFO] [stderr]    Compiling serde v1.0.104
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking approx v0.3.2
[INFO] [stderr]     Checking deflate v0.7.20
[INFO] [stderr]     Checking inflate v0.4.5
[INFO] [stderr]    Compiling ryu v1.0.3
[INFO] [stderr]    Compiling palette v0.5.0
[INFO] [stderr]    Compiling servo-freetype-sys v4.0.5
[INFO] [stderr]    Compiling expat-sys v2.1.6
[INFO] [stderr]     Checking ppv-lite86 v0.2.6
[INFO] [stderr]     Checking walkdir v2.3.1
[INFO] [stderr]     Checking png v0.15.3
[INFO] [stderr]     Checking lyon_geom v0.14.1
[INFO] [stderr]     Checking freetype v0.4.1
[INFO] [stderr]     Checking servo-fontconfig v0.4.0
[INFO] [stderr]     Checking ordered-float v1.0.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking memmap v0.7.0
[INFO] [stderr]     Checking dirs v1.0.5
[INFO] [stderr]     Checking time v0.1.42
[INFO] [stderr]     Checking regex-automata v0.1.9
[INFO] [stderr]     Checking jpeg-decoder v0.1.18
[INFO] [stderr]     Checking stb_truetype v0.3.1
[INFO] [stderr]     Checking arrayvec v0.5.1
[INFO] [stderr]     Checking lyon_path v0.14.0
[INFO] [stderr]     Checking float-ord v0.2.0
[INFO] [stderr]     Checking rand_core v0.4.2
[INFO] [stderr]     Checking color_quant v1.0.1
[INFO] [stderr]     Checking lzw v0.10.0
[INFO] [stderr]     Checking rusttype v0.8.2
[INFO] [stderr]     Checking rand_core v0.3.1
[INFO] [stderr]     Checking image v0.22.5
[INFO] [stderr]     Checking chrono v0.4.11
[INFO] [stderr]     Checking gif v0.10.3
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking font-kit v0.4.0
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking bitvec v0.15.2
[INFO] [stderr]     Checking itoa v0.4.5
[INFO] [stderr]     Checking rand v0.5.6
[INFO] [stderr]     Checking shuffle v0.1.3
[INFO] [stderr]     Checking bstr v0.2.12
[INFO] [stderr]    Compiling palette_derive v0.5.0
[INFO] [stderr]    Compiling serde_derive v1.0.105
[INFO] [stderr]     Checking csv v1.1.3
[INFO] [stderr]     Checking plotters v0.2.12
[INFO] [stderr]     Checking assignment1 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]  --> src/knap.rs:3:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[derive(Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: no expected values for `feature`
[INFO] [stdout]   = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]   = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]   = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]  --> src/knap.rs:3:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[derive(Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: no expected values for `feature`
[INFO] [stdout]   = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]   = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]   = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/task1.rs:78:17
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w`
[INFO] [stdout]   --> src/task1.rs:78:25
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_w`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/task1.rs:78:33
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                                 ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/task1.rs:78:17
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `w`
[INFO] [stdout]   --> src/task1.rs:78:25
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_w`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/task1.rs:78:33
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |                                 ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_weight`
[INFO] [stdout]   --> src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let max_weight = 19000;
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_weight`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_size`
[INFO] [stdout]   --> src/main.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let max_size = 19000;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `population_size` is never read
[INFO] [stdout]    --> src/main.rs:136:5
[INFO] [stdout]     |
[INFO] [stdout] 136 |     population_size = 800;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `increment` is never read
[INFO] [stdout]   --> src/main.rs:47:25
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let mut increment = 0.0;
[INFO] [stdout]    |                         ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 52 |     increment = 0.05;
[INFO] [stdout]    |     ---------------- `increment` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Obj` is never constructed
[INFO] [stdout]  --> src/task1.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct Obj {
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_to_file` is never used
[INFO] [stdout]   --> src/task1.rs:11:4
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn save_to_file(arr: &mut[Obj],n:u32,w:u32,s:u32, out_file: String) -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lower_down` is never used
[INFO] [stdout]   --> src/task1.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn lower_down(current: u32, surplus: f32) -> u32 {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `make_smooth` is never used
[INFO] [stdout]   --> src/task1.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn make_smooth(arr: &mut[Obj], surplus: f32, field: String) {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `evaluate_surplus` is never used
[INFO] [stdout]   --> src/task1.rs:48:4
[INFO] [stdout]    |
[INFO] [stdout] 48 | fn evaluate_surplus(arr: &mut[Obj], control_p: u32, property: String) -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `smooth_set` is never used
[INFO] [stdout]   --> src/task1.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | fn smooth_set(arr: &mut[Obj], w: u32, s:u32) {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_one` is never used
[INFO] [stdout]   --> src/task1.rs:78:4
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate` is never used
[INFO] [stdout]   --> src/task1.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub fn generate(n: usize, max_weight: u32, max_size: u32, output_file: String) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `number` is never read
[INFO] [stdout]   --> src/knap.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct KnapsackBase {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 12 |     pub max_weight: u32,
[INFO] [stdout] 13 |     pub number: u32,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/knap.rs:3:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[derive(Deserialize)]
[INFO] [stdout]   |          ^----------
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `Deserialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Record`
[INFO] [stdout] 4 | pub struct Record {
[INFO] [stdout]   |            ------ `Record` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_weight`
[INFO] [stdout]   --> src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let max_weight = 19000;
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_weight`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_size`
[INFO] [stdout]   --> src/main.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let max_size = 19000;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `population_size` is never read
[INFO] [stdout]    --> src/main.rs:136:5
[INFO] [stdout]     |
[INFO] [stdout] 136 |     population_size = 800;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `increment` is never read
[INFO] [stdout]   --> src/main.rs:47:25
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let mut increment = 0.0;
[INFO] [stdout]    |                         ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 52 |     increment = 0.05;
[INFO] [stdout]    |     ---------------- `increment` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Obj` is never constructed
[INFO] [stdout]  --> src/task1.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct Obj {
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_to_file` is never used
[INFO] [stdout]   --> src/task1.rs:11:4
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn save_to_file(arr: &mut[Obj],n:u32,w:u32,s:u32, out_file: String) -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lower_down` is never used
[INFO] [stdout]   --> src/task1.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn lower_down(current: u32, surplus: f32) -> u32 {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `make_smooth` is never used
[INFO] [stdout]   --> src/task1.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn make_smooth(arr: &mut[Obj], surplus: f32, field: String) {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `evaluate_surplus` is never used
[INFO] [stdout]   --> src/task1.rs:48:4
[INFO] [stdout]    |
[INFO] [stdout] 48 | fn evaluate_surplus(arr: &mut[Obj], control_p: u32, property: String) -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `smooth_set` is never used
[INFO] [stdout]   --> src/task1.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | fn smooth_set(arr: &mut[Obj], w: u32, s:u32) {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_one` is never used
[INFO] [stdout]   --> src/task1.rs:78:4
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate` is never used
[INFO] [stdout]   --> src/task1.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub fn generate(n: usize, max_weight: u32, max_size: u32, output_file: String) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `number` is never read
[INFO] [stdout]   --> src/knap.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct KnapsackBase {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 12 |     pub max_weight: u32,
[INFO] [stdout] 13 |     pub number: u32,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/knap.rs:3:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[derive(Deserialize)]
[INFO] [stdout]   |          ^----------
[INFO] [stdout]   |          |
[INFO] [stdout]   |          `Deserialize` is not local
[INFO] [stdout]   |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Record`
[INFO] [stdout] 4 | pub struct Record {
[INFO] [stdout]   |            ------ `Record` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.41s
[INFO] running `Command { std: "docker" "inspect" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef", kill_on_drop: false }`
[INFO] [stdout] d3df5bed59543eb0b838fbc65d8984d8469ca65bc21dc6e1cf3d78a13f9b32ef
